Skip to content

fix: get account with base64+zstd - #737

Closed
Arrowana wants to merge 1 commit into
solana-foundation:mainfrom
Arrowana:fix/account-base64-zstd-encoding
Closed

fix: get account with base64+zstd#737
Arrowana wants to merge 1 commit into
solana-foundation:mainfrom
Arrowana:fix/account-base64-zstd-encoding

Conversation

@Arrowana

@Arrowana Arrowana commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

This should work out of the box, that's also the rust solana-rpc-client default

@greptile-apps

greptile-apps Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Enables zstd support for Solana account decoder client types and adds coverage for Base64Zstd account responses.

  • Activates the zstd feature on the shared solana-account-decoder-client-types dependency.
  • Verifies that getAccountInfo returns Base64Zstd data that decodes to the original account.

Confidence Score: 5/5

The PR appears safe to merge, with no concrete changed-code failure identified.

The dependency feature is paired with a test that exercises the production getAccountInfo encoding path and validates a complete Base64Zstd round trip.

Important Files Changed

Filename Overview
Cargo.toml Enables the decoder client-types zstd feature used for Base64Zstd account serialization and deserialization.
crates/core/src/rpc/accounts_data.rs Adds an end-to-end RPC unit test covering Base64Zstd encoding and round-trip account decoding.

Reviews (1): Last reviewed commit: "fix: get account with base64+zstd" | Re-trigger Greptile

@MicaiahReid MicaiahReid left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, @Arrowana! Was this an issue you had? It's great to have the test, but it passes without the associated dep change, so I want to be sure we're fixing any underlying issue you had

Comment thread Cargo.toml
solana-account-decoder = { version = "4.0", default-features = false }
solana-account-decoder-client-types = { version = "4.0", default-features = false }
solana-account-decoder-client-types = { version = "4.0", default-features = false, features = [
"zstd",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this feature and the test above still passed. Are we sure it's needed?

@Arrowana Arrowana Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both solana-account-decoder and solana-rpc-client already enable solana-account-decoder-client-types/zstd

https://github.com/anza-xyz/agave/blob/d32fc31eb1717f534466fca42eea7848e335ef4d/account-decoder/Cargo.toml#L30

so yes that's indeed incorrect, i think the symptoms are similar to #738 but the root cause was misdiagnosed wildly

@Arrowana Arrowana closed this Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants